package com.ruoyi.rsikManage.service.Impl;

import java.util.List;


import com.ruoyi.rsikManage.domain.TVideoQualityDictionary;
import com.ruoyi.rsikManage.mapper.TVideoQualityDictionaryMapper;
import com.ruoyi.rsikManage.service.ITVideoQualityDictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 视频质量字典Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-08
 */
@Service
public class TVideoQualityDictionaryServiceImpl implements ITVideoQualityDictionaryService
{
    @Autowired
    private TVideoQualityDictionaryMapper tVideoQualityDictionaryMapper;

    /**
     * 查询视频质量字典
     * 
     * @param id 视频质量字典ID
     * @return 视频质量字典
     */
    @Override
    public TVideoQualityDictionary selectTVideoQualityDictionaryById(Long id)
    {
        return tVideoQualityDictionaryMapper.selectTVideoQualityDictionaryById(id);
    }

    /**
     * 查询视频质量字典列表
     * 
     * @param tVideoQualityDictionary 视频质量字典
     * @return 视频质量字典
     */
    @Override
    public List<TVideoQualityDictionary> selectTVideoQualityDictionaryList(TVideoQualityDictionary tVideoQualityDictionary)
    {
        return tVideoQualityDictionaryMapper.selectTVideoQualityDictionaryList(tVideoQualityDictionary);
    }

    /**
     * 新增视频质量字典
     * 
     * @param tVideoQualityDictionary 视频质量字典
     * @return 结果
     */
    @Override
    public int insertTVideoQualityDictionary(TVideoQualityDictionary tVideoQualityDictionary)
    {
        return tVideoQualityDictionaryMapper.insertTVideoQualityDictionary(tVideoQualityDictionary);
    }

    /**
     * 修改视频质量字典
     * 
     * @param tVideoQualityDictionary 视频质量字典
     * @return 结果
     */
    @Override
    public int updateTVideoQualityDictionary(TVideoQualityDictionary tVideoQualityDictionary)
    {
        return tVideoQualityDictionaryMapper.updateTVideoQualityDictionary(tVideoQualityDictionary);
    }

    /**
     * 批量删除视频质量字典
     * 
     * @param ids 需要删除的视频质量字典ID
     * @return 结果
     */
    @Override
    public int deleteTVideoQualityDictionaryByIds(Long[] ids)
    {
        return tVideoQualityDictionaryMapper.deleteTVideoQualityDictionaryByIds(ids);
    }

    /**
     * 删除视频质量字典信息
     * 
     * @param id 视频质量字典ID
     * @return 结果
     */
    @Override
    public int deleteTVideoQualityDictionaryById(Long id)
    {
        return tVideoQualityDictionaryMapper.deleteTVideoQualityDictionaryById(id);
    }
}
